package com.jinghua.treatment.service.impl;

import com.jinghua.treatment.mapper.ManagerMapper;
import com.jinghua.treatment.service.ManagerServie;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by LV
 */
@Service("managerService")
public class ManagerServiceImpl implements ManagerServie{

    @Autowired
    private ManagerMapper managerMapper;

    @Override
    public List<String> queryEmployeeList(String userId) {
        return managerMapper.queryEmployeeList(userId);
    }

    @Override
    public List<String> queryManagerMessage(String userId) {
        return managerMapper.queryManagerMessage(userId);
    }

    @Override
    public int changeDependency(String userId, String doctorId, String beforeEmp, String afterEmp) {
        Map param = new HashMap<>();
        return managerMapper.changeDependency(param);
    }
}
